class cateHttp {
    static baseUrl = "http://127.0.0.1:7001"
    static request(url) {
        return new Promise((resolve, reject) => {
            wx.request({
                url: this.baseUrl + url,
                header: { 'content-type': 'application/json' },
                method: 'GET',
                dataType: 'json',
                responseType: 'text',
                success: (res) => {
                    resolve(res)
                },
                fail: (err) => {
                    reject(err)
                },
            });
        })
    }
}
module.exports = cateHttp